﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current">
        <header class="bar student-bar">
          <a href="${ctx.host}" class="icon icon-left pull-left back"></a>
          <h1 class="student-title">我的学员</h1>
        </header>
        <div class="bar bar-header-secondary  bar-tab">
           <a class="tab-item student external fs-tab ${courseType.individual ? 'active' : ''}" href="${ctx.host}/students?type=individual">1v1</a>
           <a class="tab-item student external fs-tab ${courseType.group ? 'active' : ''}" href="${ctx.host}/students?type=group">团课</a>
           <a class="tab-item student external fs-tab ${courseType.year ? 'active' : ''}" href="${ctx.host}/students?type=year">年卡</a>
        </div>
        
        <div class="content">
        
          <div class="list-block media-list" style="margin-top:1.2rem">
            <ul>
              <c:if test="${empty coachStudentRelations}">
                <p class="text-center">暂无学员</p>
              </c:if>
              <c:forEach var="coachStudentRelation" items="${coachStudentRelations}">
                <a href="${ctx.host}/students/${coachStudentRelation.student.id}?type=${courseType.alias}" class="item-content student item-link">
                  <div class="item-media"><img src="${coachStudentRelation.student.avatar}" style='width: 4rem;'></div>
                  <div class="item-inner">
                    <div class="item-title-row">
                      <div class="item-title">${coachStudentRelation.student.name}<small class="color-gray">&nbsp;${coachStudentRelation.student.mobile}</small></div>
                    </div>
                    <div class="item-subtitle" style="margin: .2rem 0; height: 2.4rem;">
                      最后上课时间<br>${coachStudentRelation.lastUpdateTime}
                    </div>
                  </div>
                </a>
              </c:forEach>
            </ul>
          </div>
        </div>
        
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
    
  </body>
</html>